//
//  XYTUserEnteringViewController.m
//  XYTPayOrderSystem
//
//  Created by wupeng on 2017/9/4.
//  Copyright © 2017年 wupeng. All rights reserved.
//

#import "XYTUserEnteringViewController.h"
#import "XYTImageTextFieldView.h"
#import "XYTSelectButton.h"

@interface XYTUserEnteringViewController ()

@end

@implementation XYTUserEnteringViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"用户录入";
    self.view.backgroundColor = [UIColor colorWithRed:239.0/255.0 green:239.0/255.0 blue:244.0/255.0 alpha:1];
    [self setupUI];
    
}

- (void)setupUI{
    XYTImageTextFieldView *phoneView = [[XYTImageTextFieldView alloc] initWithFrame:CGRectMake(0, 74, kScreen_Width, 40)];
    [phoneView.layer setBorderWidth:0];
    [phoneView.layer setCornerRadius:0];
    phoneView.backgroundColor = [UIColor whiteColor];
    phoneView.textField.placeholder = @"请输入手机号";
    [self.view addSubview:phoneView];
    
    XYTSelectButton *downloadBtn = [[XYTSelectButton alloc] initWithFrame:CGRectMake(25, CGRectGetMaxY(phoneView.frame)+10, 80, 15) buttonTitle:@"下载成功"];
    [self.view addSubview:downloadBtn];
    
    XYTSelectButton *bindBtn = [[XYTSelectButton alloc] initWithFrame:CGRectMake(CGRectGetMaxX(downloadBtn.frame)+10, CGRectGetMaxY(phoneView.frame)+10, 80, 15) buttonTitle:@"绑定成功"];
    [self.view addSubview:bindBtn];
    
    UIButton *submitBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    submitBtn.frame = CGRectMake(30, CGRectGetMaxY(downloadBtn.frame) + 15, kScreen_Width - 30*2, 40);
    submitBtn.backgroundColor = [UIColor colorWithRed:69.0f/255.0 green:140.0f/255.0 blue:200.0f/255.0 alpha:1];
    submitBtn.titleLabel.font = [UIFont systemFontOfSize:16];
    [submitBtn setTitle:@"录入" forState:UIControlStateNormal];
    [submitBtn addTarget:self action:@selector(enteringUser) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:submitBtn];
}

- (void)enteringUser{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
